﻿using System;
using System.ComponentModel.DataAnnotations;
using XStudio.XCRF.Data.Business.Archieve;

namespace XStudio.XCRF.Data.Entities
{
    /// <summary>
    /// 其他治疗信息条目
    /// </summary>
    /// <typeparam name="T">具体类型</typeparam>
    public abstract partial class OtherCure<T> : BaseEntity<T> where T : BaseEntity<T>
    {
        #region 属性
        /// <summary>
        /// 名称
        /// </summary>
        [ArchieveField]
        [Column(TypeName = "varchar")]
        [MaxLength(50)]
        public string Name { get; set; }
        /// <summary>
        /// 开始时间
        /// </summary>
        [ArchieveField]
        [DataType(DataType.Date)]
        [Column(TypeName = "date")]
        public DateTime? StartTime { get; set; }
        /// <summary>
        /// 结束时间
        /// </summary>
        [ArchieveField]
        [DataType(DataType.Date)]
        [Column(TypeName = "date")]
        public DateTime? EndTime { get; set; }
        /// <summary>
        /// 备注
        /// </summary>
        [ArchieveField]
        [Column(TypeName = "varchar")]
        [MaxLength(100)]
        public string Remark { get; set; }
        #endregion 属性
    }
}
